#include "choice.h"

Choice::Choice()
{

}


void Choice::Save()
{
    QFile file(this->m_title.left(10));
    file.open(QIODevice::ReadOnly | QIODevice::WriteOnly);      //只读的方式打开

    file.write(this->m_title.toUtf8() + "\n");
    file.write(this->m_a.toUtf8() + "\n");
    file.write(this->m_b.toUtf8() + "\n");
    file.write(this->m_c.toUtf8() + "\n");
    file.write(this->m_d.toUtf8() + "\n");
    file.write(this->m_res.toUtf8() + "\n");
    file.write(this->Cate().toUtf8() + "\n");
    file.write(QString::number(this->m_score).toUtf8() + "\n");

    file.close();                       //关闭文件对象
}
